package com.xiaofan.bean;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.validation.annotation.Validated;

/**
 * @author 晓帆
 * @version 1.0
 **/
@Data
public class User {
    @Length(max = 18,min = 6)
    private String username;
    @Length(max = 10,min = 6)
    private String password;
}
